package com.yungu.swift.order.utils;


import com.yungu.swift.common.service.CommonSmsService;

/**
 * Created by JXJ on 2018/4/25.
 */
public class SmsTask implements Runnable {

    private CommonSmsService commonSmsService;

    private String appid;
    private String mobile;
    private String msg;

    public SmsTask(CommonSmsService commonIdentifyService, String mobile, String msg, String appid) {
        this.commonSmsService = commonIdentifyService;
        this.mobile = mobile;
        this.msg = msg;
        this.appid = appid;
    }

    @Override
    public void run() {
        commonSmsService.sendCommon(mobile, msg, appid);
    }

}
